package com.bean.autowire;

import com.bean.annotation.interfacts.UserService;
import lombok.Setter;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

// @Controller
@Setter
public class UserController {

    private UserService userService;

    public void saveUser() {
        System.out.println("user controller save");
        this.userService.save();
    }
}
